package routes

import (
	"github.com/gin-gonic/gin"
	"lottery/web/controllers"
)

// 定义处理首页的各种路由
func addIndexRouters(rg *gin.RouterGroup, indexCol *controllers.IndexController) {

	rg.GET("/", indexCol.Get)

	rg.GET("/gifts", indexCol.GetGifts)

	rg.GET("/login", indexCol.GetLogin)

	rg.GET("logout", indexCol.GetLogout)

	rg.GET("/myprize", indexCol.GetNewPrize)

	rg.GET("/newprize", indexCol.NewPrize)

	rg.GET("/lucky", indexCol.GetLucky)
}
